import {RegisterPayload,LoginPayload} from "@/typings/user"
import http from "@/utils/request";

export const getSliders = () => {
  return http.get("api/slider/list")
};

export const getDogs=(
currentCategory:string="all",
offset:number,
limit:number)=>{
  return http.get(`api/dog/list?category=${currentCategory}&offset=${offset}&limit=${limit}`)
}

export const getDog = (id:string) => {
  return http.get(`api/dog/${id}`)
};